package com.cocoiko;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

public class CocoikoInput extends Activity implements OnClickListener {

	private static final int SHOP_SELECT = 1;
	ImageView avatar_imageview;
	EditText comment_edittext;
	TextView shop_textview;
	TextView timelimit_textview;

	ImageView lock_imageview;
	TextView public_type;

	ImageView twitter_imageview;
	ImageView facebook_imageview;

	Button cocoiko_button;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.cocoiko_input);

		// get view
		avatar_imageview = (ImageView) findViewById(R.id.avatar);
		comment_edittext = (EditText) findViewById(R.id.comment);
		shop_textview = (TextView) findViewById(R.id.shop);
		timelimit_textview = (TextView) findViewById(R.id.time_limit);
		lock_imageview = (ImageView) findViewById(R.id.lock_image);
		public_type = (TextView) findViewById(R.id.public_type);
		twitter_imageview = (ImageView) findViewById(R.id.twitter);
		facebook_imageview = (ImageView) findViewById(R.id.facebook);
		cocoiko_button = (Button) findViewById(R.id.cocoiko);

		// add action listener
		avatar_imageview.setOnClickListener(this);
		comment_edittext.setOnClickListener(this);
		shop_textview.setOnClickListener(this);
		timelimit_textview.setOnClickListener(this);
		lock_imageview.setOnClickListener(this);
		public_type.setOnClickListener(this);
		twitter_imageview.setOnClickListener(this);
		facebook_imageview.setOnClickListener(this);
		cocoiko_button.setOnClickListener(this);
	}

	@Override
	public void onClick(View view) {
		// TODO Auto-generated method stub
		if (view == avatar_imageview) {
			avatarImageViewClick();
		}
		if (view == comment_edittext) {
			commentEdittextClick();
		}
		if (view == shop_textview) {
			shopTextviewClick();
		}
		if (view == lock_imageview) {
			lockImageviewClick();
		}
		if (view == twitter_imageview) {
			twitterImageviewClick();
		}
		if (view == facebook_imageview) {
			facebookImageviewClick();
		}
		if (view == timelimit_textview) {
			timelimitImageviewClick();
		}
		if (view == cocoiko_button) {

		}
	}

	public void avatarImageViewClick() {

	}

	public void shopTextviewClick() {
		Intent intent = new Intent(this, ShopSelect.class);
		startActivityForResult(intent, SHOP_SELECT);
	}

	public void commentEdittextClick() {

	}

	public void lockImageviewClick() {

	}

	public void twitterImageviewClick() {

	}

	public void facebookImageviewClick() {

	}

	public void timelimitImageviewClick() {

	}

	public void cocoikoButtonClick() {

	}

	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		// TODO Auto-generated method stub
		super.onActivityResult(requestCode, resultCode, data);
	}
}
